package com.epfly.promo.base;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.constraints.NotEmpty;

@FeignClient(value = "promo-demo", contextId = "UserServiceFeign")
public interface UserServiceFeign {


//    @GetMapping(value = "/sayHello")
    @RequestMapping(method = RequestMethod.GET, path = "/sayHello")
    String sayHello(@NotEmpty(message = "name ca") String name);
}

